<template>
  <div class="saveAddress">
    <nut-button shape="square" type="info">保存</nut-button>
  </div>
</template>

<script lang="ts">
import Taro, { useRouter } from '@tarojs/taro';
import { reactive, toRefs, onMounted } from 'vue';
import { postAddress } from '../../../../api/index'
export default {
  components: {

  },
  setup() {
    const data = reactive({

    });
    onMounted(() => {
      Taro.getStorage({
        key: 'user',
        success: function (res) {
          postAddress().then(response => {
            if (response.resultCode == 200) {

            }
          })
        }
      })
    });
    return {
      ...toRefs(data),
    }
  }
};
</script>


<style lang="scss" >
.saveAddress {
  position: fixed;
  bottom: 0;
  left: 0;
  background: #fff;
  padding: 20rpx 40rpx;
  box-sizing: border-box;
  width: 100%;
  text-align: center;

  .nut-button {
    width: 400rpx;
    margin: 0 auto;
    border-radius: 10rpx;
  }
}
</style>